package com.cssy.xxkj.basic.dao;

import java.util.List;

import com.cssy.xxkj.basic.dao.BasicBizDAO;
import com.cssy.xxkj.basic.entity.BasicMaterialsDO;
import com.plat.helper.SearchConditions;

/**
 * 数据访问对象接口
 * @since 2014-09-10
 */
public interface BasicMaterialsDAO extends BasicBizDAO<BasicMaterialsDO>{

    /**
     * 插入数据
     * @param basicMaterialsDO
     * @return 插入数据的主键
     */
    public String insertBasicMaterialsDO(BasicMaterialsDO basicMaterialsDO);

    /**
     * 统计记录数
     * @param basicMaterialsDO
     * @return 查出的记录数
     */
    public Integer countBasicMaterialsDOByExample(BasicMaterialsDO basicMaterialsDO);

    /**
     * 更新记录
     * @param basicMaterialsDO
     * @return 受影响的行数
     */
    public Integer updateBasicMaterialsDO(BasicMaterialsDO basicMaterialsDO);

    /**
     * 获取对象列表
     * @param basicMaterialsDO
     * @return 对象列表
     */
    public List<BasicMaterialsDO> findListByExample(BasicMaterialsDO basicMaterialsDO);

    /**
     * 根据主键获取basicMaterialsDO
     * @param id
     * @return basicMaterialsDO
     */
    public BasicMaterialsDO findBasicMaterialsDOByPrimaryKey(String id);

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteBasicMaterialsDOByPrimaryKey(String id);
    
    
    public List<BasicMaterialsDO> findExBom(SearchConditions scs);
    
    public Integer countExBom(SearchConditions scs);

}